import http from '@/utils/http';

// 统计相关API
export const getTeacherUsageStats = (period) => {
  return http.get('/api/admin/statistics/teacher-usage', { 
    params: { period } 
  });
};

export const getStudentUsageStats = (period) => {
  return http.get('/api/admin/statistics/student-usage', { 
    params: { period } 
  });
};

export const getTeachingEfficiencyMetrics = (period) => {
  return http.get('/api/admin/statistics/teaching-efficiency', { 
    params: { period } 
  });
};

export const getStudentLearningMetrics = (period) => {
  return http.get('/api/admin/statistics/student-learning', { 
    params: { period }
  });
};

export const getTeachingResourcesBySubject = (subject) => {
  return http.get('/api/admin/statistics/teaching-resources', {
    params: { subject }
  });
};

export const exportTeachingResources = (subject) => {
  return http.get('/api/admin/statistics/teaching-resources/export', {
    params: { subject },
    responseType: 'blob'
  });
}; 